StockCloseMark
StockCloseMark records are published immediately after the market close - 5 min and again when exchanges publish official marks. StockCloseMark records are published to the SpiderRock elastic cluster when clsMarkState=Final
METADATA
Attribute | Value |
---|---|
Topic | 3120-market-marks |
MLink Token | EqtMarkData |
Product | SRAnalytics |
accessType | SELECT |
Table Definition
Field | Type | Key | Default Value | Comment |
---|---|---|---|---|
ticker_at | enum - AssetType | PRI | 'None' | |
ticker_ts | enum - TickerSrc | PRI | 'None' | |
ticker_tk | VARCHAR(12) | PRI | '' | |
tradeDate | DATE | '1900-01-01' | ||
clsMarkState | enum - ClsMarkState | 'None' | Preview or Final | |
opnPrc | FLOAT | 0 | Open price start of regular hours | |
minPrc | FLOAT | 0 | Low price during regular hours | |
maxPrc | FLOAT | 0 | High price during regular hours | |
sharesOutstanding | BIGINT | 0 | Shares outstanding | |
prtCount | INT | 0 | Print count entire trading period | |
prtVolume | INT | 0 | Print volume entire trading period | |
realizedCnt | INT | 0 | number of minute bar segments used in realizedVar calc | |
realizedVol | FLOAT | 0 | realizedVol SQRT SUM LOG qteTwapT qteTwapT1 2 realizedCnt 1 minute intervals during market hours | |
avgMktSize | FLOAT | 0 | Average market size | |
avgMktWidth | FLOAT | 0 | Average market width | |
bidPrc | FLOAT | 0 | bid price close 5 min | |
askPrc | FLOAT | 0 | ask price close 5 min | |
srClsPrc | FLOAT | 0 | SR close mark close 5 min | |
closePrc | FLOAT | 0 | official exchange closing mark or last print | |
hasSRClsPrc | enum - YesNo | 'None' | srClsPrc is valid | |
hasClosePrc | enum - YesNo | 'None' | closePrc is valid otherwise is last print | |
srCloseMarkDttm | DATETIME(6) | '1900-01-01 00:00:00.000000' | close 5 min datetime | |
timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' | record publishupdate timestamp |
PRIMARY KEY DEFINITION (Unique)
Field | Sequence |
---|---|
ticker_tk | 1 |
ticker_at | 2 |
ticker_ts | 3 |
CREATE TABLE EXAMPLE QUERY
CREATE TABLE `SRAnalytics`.`MsgStockCloseMark` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '',
`tradeDate` DATE NOT NULL DEFAULT '1900-01-01',
`clsMarkState` ENUM('None','Preview','Final') NOT NULL DEFAULT 'None' COMMENT 'Preview or Final',
`opnPrc` FLOAT NOT NULL DEFAULT 0 COMMENT 'Open price (start of regular hours)',
`minPrc` FLOAT NOT NULL DEFAULT 0 COMMENT 'Low price (during regular hours)',
`maxPrc` FLOAT NOT NULL DEFAULT 0 COMMENT 'High price (during regular hours)',
`sharesOutstanding` BIGINT NOT NULL DEFAULT 0 COMMENT 'Shares outstanding',
`prtCount` INT NOT NULL DEFAULT 0 COMMENT 'Print count (entire trading period)',
`prtVolume` INT NOT NULL DEFAULT 0 COMMENT 'Print volume (entire trading period)',
`realizedCnt` INT NOT NULL DEFAULT 0 COMMENT 'number of minute bar segments used in realizedVar calc',
`realizedVol` FLOAT NOT NULL DEFAULT 0 COMMENT 'realizedVol = SQRT: SUM[ LOG( qteTwap(T) / qteTwap(T+1) ) ^ 2 ] / realizedCnt @ 1 minute intervals during market hours',
`avgMktSize` FLOAT NOT NULL DEFAULT 0 COMMENT 'Average market size',
`avgMktWidth` FLOAT NOT NULL DEFAULT 0 COMMENT 'Average market width',
`bidPrc` FLOAT NOT NULL DEFAULT 0 COMMENT 'bid price (close - 5 min)',
`askPrc` FLOAT NOT NULL DEFAULT 0 COMMENT 'ask price (close - 5 min)',
`srClsPrc` FLOAT NOT NULL DEFAULT 0 COMMENT 'SR close mark (close - 5 min)',
`closePrc` FLOAT NOT NULL DEFAULT 0 COMMENT 'official exchange closing mark (or last print)',
`hasSRClsPrc` ENUM('None','Yes','No') NOT NULL DEFAULT 'None' COMMENT 'srClsPrc is valid',
`hasClosePrc` ENUM('None','Yes','No') NOT NULL DEFAULT 'None' COMMENT 'closePrc is valid; otherwise is last print',
`srCloseMarkDttm` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT '(close - 5 min) date/time',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'record publish/update timestamp',
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='StockCloseMark records are published immediately after the market close - 5 min and again when exchanges publish official marks.\nStockCloseMark records are published to the SpiderRock elastic cluster when clsMarkState=Final';
SELECT TABLE EXAMPLE QUERY
SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`tradeDate`,
`clsMarkState`,
`opnPrc`,
`minPrc`,
`maxPrc`,
`sharesOutstanding`,
`prtCount`,
`prtVolume`,
`realizedCnt`,
`realizedVol`,
`avgMktSize`,
`avgMktWidth`,
`bidPrc`,
`askPrc`,
`srClsPrc`,
`closePrc`,
`hasSRClsPrc`,
`hasClosePrc`,
`srCloseMarkDttm`,
`timestamp`
FROM `SRAnalytics`.`MsgStockCloseMark`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk';
Doc Columns Query
SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='StockCloseMark' ORDER BY ordinal_position ASC;